package day52.org.mapper;

import day52.org.domain.Shop;
import day52.basic.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yang
 * @since 2022-12-17
 */
@Repository
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByName(String name);

    void batchAdd(List<Shop> shops);

    List<Shop> findAllAvailableShops();

}
